package com.huanghj.mqJsm.web;


import com.huanghj.mqJsm.web.listener.StartupListener;
import com.octo.captcha.engine.GenericCaptchaEngine;
import com.octo.captcha.service.captchastore.FastHashMapCaptchaStore;
import com.octo.captcha.service.image.DefaultManageableImageCaptchaService;
import com.octo.captcha.service.image.ImageCaptchaService;

/**
 * @author Hungel.zou
 * @time 2015年7月8日 上午11:53:30
 */
public class CaptchaServiceSingleton extends
		DefaultManageableImageCaptchaService {

	private static ImageCaptchaService instance = new DefaultManageableImageCaptchaService(
			new FastHashMapCaptchaStore(),
			(GenericCaptchaEngine) StartupListener.getBean("imageEngine"), 180,
			10000, 7500);

	public static ImageCaptchaService getInstance() {
		return instance;
	}

}
